package io.renren.modules.lanling.dao;

import io.renren.common.utils.Query;
import io.renren.modules.lanling.entity.QuestionEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 题目记录表（记录顺序练习的题目）
 *
 * @author LANLING
 * @email lanling@gmail.com
 * @date 2018-10-22 10:28:14
 */
public interface QuestionDao extends BaseMapper<QuestionEntity> {

    List<QuestionEntity> queryList(Query query);

    Integer queryTotal(Query query);

    QuestionEntity queryObject(@Param("id") Integer id);

    Boolean update(QuestionEntity questionEntity);

    void deleteBySubjectId(@Param("subjectId") int subjectId);

}
